@echo off
REM 定义下载目录
set "DOWNLOAD_DIR=%CD%\downloaded_files"

REM 创建下载目录
mkdir "%DOWNLOAD_DIR%"

REM 使用 wget 递归下载所有文件
echo Starting recursive download...
wget --recursive --no-parent --no-clobber --continue --directory-prefix="%DOWNLOAD_DIR%" ^
     --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" ^
     --header="Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6" ^
     --header="Cache-Control: max-age=0" ^
     --header="Connection: keep-alive" ^
     --header="Upgrade-Insecure-Requests: 1" ^
     --header="User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0" ^
     "https://sid.erda.dk/cgi-sid/ls.py?share_id=GxrFNGtykS"

REM 提示完成
echo Download process completed. Check the %DOWNLOAD_DIR% folder.
pause
